package cn.me.implement.threadpool.v4_0.reject;

import cn.me.implement.threadpool.v4_0.ThreadPool4_0;

/**
 * <h3>让提交任务的线程去执行这个任务的拒绝策略</h3>
 */
public class CallerRunPolicy implements RejectPolicy {

    @Override
    public void reject(ThreadPool4_0 threadPool, Runnable task) {
        task.run();
    }
}
